local Character = {}

function Character:new()
	local character = display.newGroup()	
	character.sprite = display.newCircle( character, 0, 0, 5 )
	character.text = display.newText({
		parent = character,
		text = 'waiting',
		fontSize = 5
	})
	
	function character:init()
		character.x = halfX
		character.y = halfY
		Runtime:addEventListener( 'accelerometer', character )
	end

	function character:accelerometer( event )
		self.text.text = inspect(event)
	end

	character:init()

	return character
end

return Character